package demo.echarts.util;

import cn.hutool.http.HttpUtil;

/**
 * @ClassName RESTUtil
 * @Description 发送REST请求工具类
 */
public final class RESTUtil {

    public static String sendPostRequest(String url, String params) {
        System.out.println("地址："+url);
        System.out.println("参数："+params);
        return HttpUtil.createPost(url).body(params,"application/json").execute().body();
    }



}
